home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group96b.txt / 000004_icon-group-sender _Fri Sep 27 21:49:30 1996.msg < prev    next >
Internet Message Format  |  1997-01-02  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Mon, 30 Sep 1996 13:38:41 MST
  2. Date: Fri, 27 Sep 1996 21:49:30 -0500
  3. Message-Id: <199609280249.VAA26822@segfault.cs.utsa.edu>
  4. From: Clinton Jeffery <jeffery@segfault.cs.utsa.edu>
  5. To: rjhare@ed.ac.uk
  6. Cc: icon-group@cs.arizona.edu
  7. In-Reply-To: <9609260955.aa11962@uk.ac.ed.tattoo> (message from R J Hare on 26
  8.     Sep 96 09:55:36 BST)
  9. Subject: Re: Copying of irregular images
  10. Reply-To: jeffery@ringer.cs.utsa.edu
  11. Errors-To: icon-group-errors@cs.arizona.edu
  12.  
  13.  
  14. [Roger Hare writes:]
  15. >   I want to copy what is (effectively) an irregular shaped image...
  16. >   Is there a "transparent" colour so that I can set the background this way
  17. >   before generating my irregular image, so that when copied onto the window,
  18. >   the "transparent" pixels in the image do not affect the corresonding
  19. >   pixels in the window? I cannot find any mention of this in the WWW pages.
  20. >   Should there be such a "transparent" colour or is the whole idea rubbish?
  21.  
  22. Well, CopyArea() doesn't work this way.  I believe the image processing
  23. functions do have a concept of a transparent color that might allow you to
  24. achieve the affect you are after...you might have to do a little bit of work
  25. to turn your drawn window into an image string, and then tweak that image
  26. string to change all pixels drawn in a certain color into the transparent
  27. color.  It might be as simple as an IPL procedure call followed by a call
  28. to map(), but it might be a bit more work.  Gregg Townsend is the ultimate
  29. authority on images and their manipulation in Icon.
  30.  
  31. Clint Jeffery
  32. jeffery@cs.utsa.edu
  33. Division of Computer Science, The University of Texas at San Antonio
  34. Research http://www.cs.utsa.edu/research/plss.html
  35.